import { createRouter, createWebHistory } from 'vue-router'
import LoginView from "@/views/LoginView.vue";
import RouterIndex from "@/views/RouterIndex.vue";
import Parent from "@/components/Parent.vue";

const routes = [
  {
    path: '/login',
    name: 'login',
    component: LoginView
  },
  {
    path: '/routerindex',
    component: RouterIndex,
    children:[
      {
        path:'/login',
        component: LoginView
      },
      {
        path:'/parent',
        component: Parent
      }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
